<?php
session_start();
if (! isset($_SESSION['username'])) {
    if ($_SESSION['username'] != "admin") {
        header("Location:login.php");
        exit();
    }
}
?>
<head>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
    <script src="tinymce/js/tinymce/tinymce.min.js"></script>
    <script>tinymce.init({
            selector: 'textarea',
            theme: "modern",
            language: "zh_CN",
            plugins: "advlist, anchor, autolink, autoresize, autosave, bbcode, charmap, code, codesample, colorpicker, compat3x, contextmenu, directionality, emoticons, fullpage, fullscreen, help, hr, image, imagetools, importcss, insertdatetime, legacyoutput, link, lists, media, nonbreaking, noneditable, pagebreak, paste, preview, print, save, searchreplace, spellchecker, tabfocus, table, template, textcolor, textpattern, toc, visualblocks, visualchars, wordcount, emoticons",
            // 使用的插件,有很多插件和工具栏按钮重复,可以去掉
            // 这里加载所有插件
            branding: false
        });</script>
</head>
<div class="form">
	<form id="form1" name="form1" method="post" action="reply.php"
		onsubmit="return InputCheck(this)">
		<h3>回复留言</h3>
		<p>
			<input type="button" onclick="window.location.href='index.php'"
				value="首页" />
		</p>
		<p>
			<input id="id" name="id" type="hidden" value="<?=$_POST['id']?>" /> <label
				for="title">管&nbsp;&nbsp;理&nbsp;&nbsp;员:</label> <input type="text"
				name="nickname" value="<?=$_SESSION['username']?>"
				disabled="disabled" />
		</p>
		<p>
			<label for="title">回复内容:</label>
			<textarea id="content" name="reply" cols="50" rows="8"></textarea>
		</p>
		<input type="button" onclick="history.go(-1)" value="返回"></input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
			type="submit" name="submit" value="  确 定  " />

	</form>
</div>